/**
 \* Created with IntelliJ IDEA.
 \* @author: 彭诗杰
 \* @date: 2019/7/1
 \* @time: 15:43
 \* Description:
 \*/

import * as API from './'

export default {

  getAirSystems: id => API.GET('/air-service/air/' + id + '/systems'),

  getAirFactors: params => API.GET('/air-service/air/' + params.airId
    + '/system/' + params.systemCode + '/factors'),

  getAirLatestValue: params => API.GET('/air-service/air/' + params.airId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/latest'),

  getAirFactorHistoryValues: params => API.GET('/air-service/air/' + params.airId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/histories', params),

  getAirHistoriesNoPaging: params => API.GET('/air-service/air/' + params.airId
    + '/system/' + params.systemCode + '/factor/' + params.factorCode + '/histories/all', params)
}
